|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectro.inf.p2.odd.alan.Tape
public class Tape
Class Tape A Endless Tape, on which the Touring Machine writes
| Constructor Summary | |
|---|---|
Tape()
|
|
| Method Summary | |
|---|---|
java.lang.Character |
getCurrentValue()
Get the value at the current position at the tape. |
void |
moveLeft()
Move the tape left. |
void |
moveRight()
move the tape right |
void |
moveStart()
move the tape back to the initial position |
int |
offsetToLeftMostChar()
Returns the offset between the left most character and the current character |
void |
setContent(java.lang.String value)
Set the tapes content to @param value |
void |
setCurrentValue(java.lang.Character value)
Set the value at the current position at the tape. |
java.lang.String |
toString()
Reimplemented from Object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tape()
| Method Detail |
|---|
public void setCurrentValue(java.lang.Character value)
public java.lang.Character getCurrentValue()
public void moveLeft()
public void moveRight()
public void moveStart()
public int offsetToLeftMostChar()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setContent(java.lang.String value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||